package com.ybbase.framework.model.po.system;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色权限对照表
 * </p>
 *
 * @author cg
 * @since 2019-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_role_permission")
@ApiModel(value="RolePermission对象", description="角色权限对照表")
public class RolePermission extends Model<RolePermission> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "角色编码")
    private Integer roleId;

    @ApiModelProperty(value = "权限编码")
    private Integer perId;

    @ApiModelProperty(value = "选中的按钮权限")
    private String buttonPer;


    @Override
    protected Serializable pkVal() {
        return this.roleId;
    }

}
